﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ActivitiesControl.Domain.Utils
{
	public class Message
	{
		public string Title { get; set; }
		public string Text { get; set; }
		public MessageType Type { get; set; }

		public Message(string title, string text, MessageType messagetype)
		{
			Title = title;
			Text = text;
			Type = messagetype;
		}
	}

	public enum MessageType
	{
		Ok,
		Warning,
		Error
	}

	public delegate void MessageHandler(object sender, MessageEventArgs e);

	public class MessageEventArgs
		: EventArgs
	{
		public Message Message { get; set; }
	}
}
